/**
 * 权限相关的API
 *
 * @author 橘柚
 * @Date 2024/12/5 8:21
 * @Description
 */
import {usePost} from "@/utils/request";

/**
 * 登录接口
 * @param userName 用户名或者邮箱
 * @param password 密码
 */
export const login = (userName: string, password: string) => {
  return usePost<any>('/auth/login', {userName, password})
}
